import { request, METHOD } from "@/utils/request";
import {
  ORGANIZATION,
  ADDORGANIZATION,
  ONEORGANIZATION,
  UPDATEORGANIZATION,
  ORGALL
} from "./api";

//列表
export function list(params) {
  return request(ORGANIZATION, METHOD.GET, params);
}
export function add(params) {
  return request(ADDORGANIZATION, METHOD.POST, params);
}
export function findById(params) {
  return request(ONEORGANIZATION, METHOD.GET, params);
}
export function update(params) {
  return request(UPDATEORGANIZATION, METHOD.POST, params);
}
//全部列表
export function findAll(params) {
  return request(ORGALL, METHOD.GET, params);
}
